package no.ntnu.fp.gui.listeners;

import no.ntnu.fp.gui.events.ChangeMeetingEvent;
import no.ntnu.fp.services.MeetingService;

public class ChangeMeetingListener implements GuiListener<ChangeMeetingEvent> {
	private final MeetingService meetingService;
	
	public ChangeMeetingListener(MeetingService meetingService) {
		this.meetingService = meetingService;
	}

	@Override
	public void handleEvent(ChangeMeetingEvent evt) {
		meetingService.updateMeeting(evt.getMeeting());
	}

	@Override
	public boolean isLongRunningListener() {
		return false;
	}

}
